import asyncio
from crawl4ai import AsyncWebCrawler


async def main():
    # Initialize the asynchronous web crawler
    async with AsyncWebCrawler(verbose=True) as crawler:
        # Crawl the specified URL
        result = await crawler.arun(url="https://www.zhihu.com/question/599131026")
        # Display the extracted content in Markdown format
        print(result.markdown)


if __name__ == "__main__":
    asyncio.run(main())